package com.hzit.rabbitmq.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 类名：
 * 作者：WF
 * 功能：
 */
@RabbitListener(queues = "hzit-direct")
@Component
public class MyListener01 {

	@RabbitHandler
	public void getDirectMessage(String message){
		System.out.println("收到消息:" + message);
	}
}
